package com.huike.report.service;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

import com.huike.common.core.domain.AjaxResult;
import com.huike.report.domain.vo.*;

import com.huike.clues.domain.TbActivity;
import com.huike.clues.domain.TbClue;
import com.huike.clues.domain.vo.IndexStatisticsVo;
import com.huike.contract.domain.TbContract;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

public interface IReportService {

    /**
     * 新增客户统计
     */
    public LineChartVO contractStatistics(String beginCreateTime, String endCreateTime);


    /**
     * 客户统计报表
     */
    public List<TbContract> contractReportList(TbContract tbContract);

    /**
     * 统计分析 - 线索统计 - 新增线索数量
     */
    LineChartVO cluesStatistics(String beginCreateTime, String endCreateTime);

    /**
     * 统计分析--客户统计--学科客户分布
     */
    public List<Map<String, Object>> subjectStatistics(String beginCreateTime, String endCreateTime);

    /**
     * 销售统计
     */
    public LineChartVO salesStatistics(String beginCreateTime, String endCreateTime);


    /**
     * 销售统计部门报表
     */
    public List<Map<String, Object>> deptStatisticsList(String beginCreateTime, String endCreateTime);

    /**
     * 销售统计渠道报表
     */
    public List<Map<String, Object>> channelStatisticsList(String beginCreateTime, String endCreateTime);

    /**
     * 销售统计归属人报表
     */
    public List<Map<String, Object>> ownerShipStatisticsList(String beginCreateTime, String endCreateTime);


    /**
     * 渠道统计
     */
    public List<Map<String, Object>> chanelStatistics(String beginCreateTime, String endCreateTime);


    /**
     * 活动统计
     */
    public List<Map<String, Object>> activityStatistics(String beginCreateTime, String endCreateTime);


    public List<TbClue> cluesStatisticsList(TbClue clue);

    /**
     * 活动渠道统计
     */
    public List<ActivityStatisticsVO> activityStatisticsList(TbActivity activity);


    public IndexVO getIndex(IndexStatisticsVo request);


    public List<Map<String, Object>> salesStatisticsForIndex(IndexStatisticsVo request);


    /**
     * 首页基本数据展示
     */
    IndexBaseInfoVO getBaseInfo(String beginCreateTime, String endCreateTime);

    /**
     * 首页--今日数据统计
     */
    IndexTodayInfoVO getTodayInfo();

    /**
     * 首页--今日待办事项
     */
    IndexTodoInfoVO getTodoInfo(String beginCreateTime, String endCreateTime);


    /**
     * 统计分析 - 线索统计 - 线索转化率
     */
    VulnerabilityMapVO getVulnerabilityMap(String beginCreateTime, String endCreateTime);

    /**
     * 首页--商机龙虎榜
     */
    List<Map<String, Object>> businessChangeStatistics(String beginCreateTime, String endCreateTime);


    /**
     * 首页--线索龙虎榜
     */
    List<Map<String, Object>> salesStatistic(String beginCreateTime, String endCreateTime);

}
